import request from '@/utils/request'

// 查询风电（产品）列表
export function listWind_power(query) {
  return request({
    url: '/data_upload/wind_power/list',
    method: 'get',
    params: query
  })
}

// 查询风电（产品）详细
export function getWind_power(productId) {
  return request({
    url: '/data_upload/wind_power/' + productId,
    method: 'get'
  })
}

// 新增风电（产品）
export function addWind_power(data) {
  return request({
    url: '/data_upload/wind_power',
    method: 'post',
    data: data
  })
}

// 修改风电（产品）
export function updateWind_power(data) {
  return request({
    url: '/data_upload/wind_power',
    method: 'put',
    data: data
  })
}

// 删除风电（产品）
export function delWind_power(productId) {
  return request({
    url: '/data_upload/wind_power/' + productId,
    method: 'delete'
  })
}
